package med.movyzer.datastructs;

import java.util.ArrayList;

import javax.swing.JTextArea;

public class Logger {
	private static ArrayList<String> entries=new ArrayList<String>();
	
	public static void addEntry(String s){
		entries.add(s);
	}
	
	public static ArrayList<String> getEntries() {
		return entries;
	}
	
	public static void clear(){
		entries.clear();
	}
	
	public static void print(JTextArea text){
		text.setText(null);
		for(int i=0;i<entries.size();i++){
			text.setText(text.getText()+"\n"+entries.get(i));
		}
	}
	
	
}
